package cn.itsource.exception;

import lombok.Data;

/**
 * 自定义全局异常
 */

@Data
public class CustomGlobalException extends RuntimeException {

    private String code;

    public CustomGlobalException(String message){
        super(message);
    };

    public CustomGlobalException(String message,String code){
        super(message);
        this.code = code;
    };
}
